package com.pos.clothes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;

public class Order {
    int idorder;

    public int getIdkind() {
        return idkind;
    }

    public void setIdkind(int idkind) {
        this.idkind = idkind;
    }

    public int getIduser() {
        return iduser;
    }

    public void setIduser(int iduser) {
        this.iduser = iduser;
    }

    public float getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(float originalPrice) {
        this.originalPrice = originalPrice;
    }

    public float getRepay() {
        return repay;
    }

    public void setRepay(float repay) {
        this.repay = repay;
    }

    public float getPay() {
        return pay;
    }

    public void setPay(float pay) {
        this.pay = pay;
    }

    public String getDeal() {
        return deal;
    }

    public void setDeal(String deal) {
        this.deal = deal;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    int iddiscount;
    int idkind;
    int iduser;
    float originalPrice;
    float total;
    float repay;
    float pay;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date time;
    String deal;
    int count;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    User user;
    List<Order_detail> order_detail;

    List<Order> orderlist;

    public List<Order_detail> getOrder_detail() {
        return order_detail;
    }

    public void setOrder_detail(List<Order_detail> order_detail) {
        this.order_detail = order_detail;
    }

    public List<Order> getOrderlist() {
        return orderlist;
    }

    public void setOrderlist(List<Order> orderlist) {
        this.orderlist = orderlist;
    }

    public int getIdorder() {
        return idorder;
    }

    public void setIdorder(int idorder) {
        this.idorder = idorder;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getIddiscount() {
        return iddiscount;
    }

    public void setIddiscount(int iddiscount) {
        this.iddiscount = iddiscount;
    }
}
